<template>
  <div class="navbar" :style="{'background-color':backgroundColor}">
    
    <span>{{name}}</span>
  </div>
</template>

<script>
export default {
    props:{
      name:String,
      backgroundColor:String
    }
  
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
 .navbar{
  position: sticky;
  top: 0;
   height: 60px;
   text-align: center;
   background-color: rgb(119,223,176);
   color: aliceblue;
  line-height:80px;
 }
</style>
